#-*- codeing = utf-8 -*-
#@Time:2022/9/1312:18
#@Author :计科1813-14-张玉婷
#@File:3.3.py
#@Software:PyCharm
import random
balls = []
for a in range(1, 10):
    balls.append(a)
daizi = [[], [], []]
for b in range(9):
    ball = random.choice(balls)  # 随机找一个元素球
    balls.remove(ball)           # 移除ball元素
    i = random.randint(0, 2)
    daizi[i].append(ball)
for c in range(3):
    print("第", c+1, "个袋子中的球为：", daizi[c])  #打印输出各个袋子中的球